// 添加和修改用户组的window视图

Ext.define("app.view.auth.GroupOperation",{
	extend: 'Ext.window.Window',
	alias: 'widget.groupoperation',	
	bodyPadding: 20,
	width: 500,	
	border: false,
	modal: true,
	items: [{
		xtype: 'form',
		defaultType: 'textfield',
		defaults: {
			labelWidth: 80,
			labelAlign: 'right',
			width: 420
		},
		items: [{
	        fieldLabel: '编号',
	    	name: 'id',
	    	editable: false	        
	    }, {
	        fieldLabel: '用户组名称',
	    	name: 'title',
	    	allowBlank: false       
	    }, {
	        xtype: 'radiogroup',
	        fieldLabel: '是否启用',
	        items: [
	            { boxLabel: '启用', name: 'status', inputValue: '1', checked: true},
	            { boxLabel: '禁用', name: 'status', inputValue: '0'},
	        ]
	    }]
	}, {
		xtype: 'button',
		style: 'margin: 10px auto 0 210px',
		text: '确定',
		action: 'groupFormSubmit'
	}],

	initComponent: function(){//初始化方法
		this.callParent(arguments);		
	}
});